package com.ihr360.payroll.service.alps.profile.provider;

import com.ihr360.alps.IServiceProfile;
import com.ihr360.alps.api.ServiceProvider;
import com.ihr360.commons.model.type.WorkHourType;
import com.ihr360.expr.parser.ExprToken;
import com.ihr360.payroll.service.alps.profile.AttendanceServiceProfile;

public class AttendanceParamProvider implements ProfileParamProvider {
    @Override
    public String logTitle() {
        return "[考勤规则]";
    }

    @Override
    public String buildVariable(WorkHourType workHourType, IServiceProfile profile) {
        StringBuilder builder = new StringBuilder(ServiceProvider.SERVICE_ID.ATTENDANCE_MONTHLY_REPORT);
        builder.append(ExprToken.NS_FIELD_CONNECTOR.val);
        builder.append(profile.getCode());
        return builder.toString();
    }

    @Override
    public IServiceProfile numOpRatio() {
        return null;
    }

    @Override
    public IServiceProfile baseRatio() {
        return AttendanceServiceProfile.baseRatio;
    }

    @Override
    public IServiceProfile monthlyWorkDays() {
        return AttendanceServiceProfile.monthWorkCount;
    }

    @Override
    public IServiceProfile dailyWorkHours() {
        return AttendanceServiceProfile.dayWorkCount;
    }

    @Override
    public IServiceProfile calcBase() {
        return null;
    }
}